//
//  MyxiaTableViewCell.m
//  UI去哪网页面作业
//
//  Created by dllo on 16/2/29.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "MyxiaTableViewCell.h"

@implementation MyxiaTableViewCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self=[super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.myimageView=[[UIImageView alloc]init];
        self.myimageView.backgroundColor=[UIColor yellowColor];
        [self.contentView addSubview:self.myimageView];
        
        self.label=[[UILabel alloc]init];
        self.label.textAlignment=YES;
        self.label.backgroundColor=[UIColor cyanColor];
        [self.contentView addSubview:self.label];
        
        self.label1=[[UILabel alloc]init];
        self.label1.backgroundColor=[UIColor cyanColor];
        self.label1.textAlignment=YES;
        [self.contentView addSubview:self.label1];
        
        self.label2=[[UILabel alloc]init];
        self.label2.backgroundColor=[UIColor cyanColor];
        self.label2.textAlignment=YES;
        [self.contentView addSubview:self.label2];
        
        self.label3=[[UILabel alloc]init];
        self.label3.backgroundColor=[UIColor cyanColor];
        [self.contentView addSubview:self.label3];
        self.label4=[[UILabel alloc]init];
        self.label4.backgroundColor=[UIColor cyanColor];
        [self.contentView addSubview:self.label4];
        self.label5=[[UILabel alloc]init];
        self.label5.backgroundColor=[UIColor cyanColor];
        [self.contentView addSubview:self.label5];
        self.label6=[[UILabel alloc]init];
        self.label6.backgroundColor=[UIColor cyanColor];
        [self.contentView addSubview:self.label6];
        self.label7=[[UILabel alloc]init];
        self.label7.backgroundColor=[UIColor cyanColor];
        [self.contentView addSubview:self.label7];
        
        self.label2.textAlignment=YES;
         self.label3.textAlignment=YES;
         self.label4.textAlignment=YES; self.label5.textAlignment=YES; self.label6.textAlignment=YES; self.label7.textAlignment=YES; 
    }
    return self;
}

-(void)layoutSubviews{
    [super layoutSubviews];
     self.label.frame=CGRectMake(10, 0, 80, 30);
 
    self.myimageView.frame=CGRectMake(10, 40, 120, 120);
    self.label2.frame=CGRectMake(145, 40, 125, 50);
    self.label3.frame=CGRectMake(145, 110, 125, 50);
    self.label5.frame=CGRectMake(280, 40, 125, 50);
    self.label6.frame=CGRectMake(280, 110, 125, 50);
    self.label1.frame=CGRectMake(350, 10, 20, 10);
    self.label7.frame=CGRectMake(380, 10, 20, 10);
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
